package com.wugenqiang.springbootmaker.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wugenqiang
 * @create 2019-01-18 18:04
 */
@RestController
public class SpringBootMakerController {

    //http://localhost:80/就会调用这个方法并输出hello docker! I am wugenqiang
    @RequestMapping("/")
    public String hello(){
        return "hello docker! I am wugenqiang";
    }
}


   /*
    @RequestMapping(value = "/hello/{name}", method = RequestMethod.GET)
    @ResponseBody
    public String hello(@PathVariable String name) {
        return "hello " + name;
    }

}*/
